<template>
    <div>
        <div class="refresh">
            <span>更多活动</span>
            <div v-for="(item,index) in djbanner" :key="index">
                <van-image :src="item.pic" radius="0.5rem" width="100%" />
            </div>
        </div>
    </div>
</template>
<script>

export default {
    data(){
        return{
            djbanner:[]
        }
    },
    created(){
        this.getBannerData();
    },
    methods:{
        getBannerData(){
            this.$request("get","/dj/banner").then((res) => {
                console.log(res);
                this.djbanner = res.data;
            })
        }
    }
}
</script>
<style scoped>
.refresh{
    text-align: left;
    margin: 1rem;
}
.refresh span{
    font-weight: bold;
    font-size: 20px;
}
</style>